package com.xiaodou.mjf.application.core.repository.mybatis;

import java.util.List;

import com.xiaodou.mjf.entity.core.Loan;
import com.xiaodou.mjf.infrastructure.common.app.Mapper;
import com.xiaodou.mjf.infrastructure.common.orm.MyBatisRepository;

@MyBatisRepository
public interface LoanMapper extends Mapper<Loan, String> {
	
	public List<Loan> getLoanListByTerm(Loan loan);
	
	public Integer getLoanCountByTerm(Integer term);

	public List<Loan> getLoanByFinancingId(Loan loan);
	
	public Integer getTotalCount(Loan loan);
	
	public List<Loan> getAllLoan(Loan loan);
	
	public Integer getAllCount(Loan loan);
}
